package br.gov.cemaden.library.model.alerta;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author alan
 */
@Entity
@Table(name = "aerodromo", schema = "alerta")
@SequenceGenerator(name = "sequence", sequenceName = "alerta.alerta_aerodromo_sequence", schema = "alerta")
public class Aerodromo implements Serializable{
    
    @Id
    @GeneratedValue(generator = "sequence", strategy = GenerationType.AUTO)
    @Column(name = "id_aerodromo", nullable = false, unique = true)
    private Long id;
    
    @Column(name = "sigla")
    private String sigla;
    
    @Column(name = "nome")
    private String nome;
    
    @Column(name = "uf", length = 2)
    private String uf;
    
    @Column(name = "lat")
    private Float latitude;
    
    @Column(name = "lon")
    private Float longitude;
    
    @Column(name = "altitude")
    private Float altitude;
    
    public Aerodromo(){
        
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSigla() {
        return sigla;
    }

    public void setSigla(String sigla) {
        this.sigla = sigla;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getUf() {
        return uf;
    }

    public void setUf(String uf) {
        this.uf = uf;
    }        

    public Float getLatitude() {
        return latitude;
    }

    public void setLatitude(Float latitude) {
        this.latitude = latitude;
    }

    public Float getLongitude() {
        return longitude;
    }

    public void setLongitude(Float longitude) {
        this.longitude = longitude;
    }

    public Float getAltitude() {
        return altitude;
    }

    public void setAltitude(Float altitude) {
        this.altitude = altitude;
    }        
    
}
